package org.jiajie.coffeecodes.lamda;


import java.util.List;

/**
 * @author jay
 */
public class TestOverriding {
    public static void main(String[] args) {
//        List<Wine> wineList = List.of(
//                new Wine(), new SparklingWine(), new Champagne()
//        );
//        for (Wine wine : wineList) {
//            System.out.println(wine.name());
//        }
    }
}
